import Vue from 'vue';
export default {
    //产品分类
    listbycategory (data) {
        return Vue.http.post('/category/listbycategory',data,Vue.httpJsonConfig);
    },
    //新增产品分类
    addcategory (data) {
        return Vue.http.post('/category/addcategory',data,Vue.httpJsonConfig);
    },
    //编辑产品分类
    editcategory (data) {
        return Vue.http.post('/category/editcategory',data,Vue.httpJsonConfig);
    },
    //删除产品分类
    deletecategory (data) {
        return Vue.http.post('/category/deletecategory',data);
    },
    //产品列表
    listbyproduct (data) {
        return Vue.http.post('/product/listbyproduct',data,Vue.httpJsonConfig);
    },
    //新增产品
    addproduct (data) {
        return Vue.http.post('/product/addproduct',data,Vue.httpJsonConfig);
    },
    //编辑产品
    editproduct (data) {
        return Vue.http.post('/product/editproduct',data,Vue.httpJsonConfig);
    },
    //属性名称
    listbyproperty (data) {
        return Vue.http.post('/property/listbyproperty',data,Vue.httpJsonConfig);
    },
    addproperty (data) {
        return Vue.http.post('/property/addproperty',data,Vue.httpJsonConfig);
    },
    deleteproperty (data) {
        return Vue.http.post('/property/deleteproperty',data);
    },

};

